package visualization.operators
{
	import visualization.IDataPoint;
	import visualization.Visualization;
	
	public class Offset extends Operator
	{
		public var number:Object = 0;
		public var amount:Object = 0;
		
		public function Offset()
		{
			super();
		}
		
		override public function process(context:Visualization, element:IDataPoint=null):Object{
			return (context.getValue(this.number, element) as Number) + (context.getValue(this.amount,element) as Number);
		}
	}
}